<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>

<body>
  <div id="div1"></div>

  <script src="./assets/lib/wangEditor.js"></script>
  <script>
    // wangEditor

    const E = window.wangEditor
    const editor = new E("#div1")
    // 或者 const editor = new E(document.getElementById('div1'))
    editor.create()
  </script>
</body>

</html>